{include file="public/header" select="0" /}
<body style="padding-top: 0">
<div class="title bgc" style="position: relative">
    购物车
    {if count($list) > 0}
    <span class="empty" style="position: absolute;right: 5%">清空</span>
    {/if}
</div>

<form action="" id="form">
    <ul class="cart_list carList">
        {foreach name="list" item="vo" }
        <li class="parent">
            <div class="cart_inp">
                <input type="checkbox" class="one" name="cart_id[]" value="{$vo.id}">
            </div>
            <div class="cart_img">
                <img src="{$vo.product.icon}" alt="">
            </div>
            <div class="cart_list-rgt">
                <div style="display: flex">
                    <p style="color: #0C0C0C">{$vo.product.title}</p>
                    <img class="delete" data-id="{$vo.id}" style="width: 8%;" src="/static/index/img/cart_del.png"/>
                </div>
                <div class="btm">
                    <p class="bsclr_org">￥<span class="price">{$vo.product.price}</span></p>
                    <div class="cart-stepper carNum">
                        <div class="minus">-</div>
                        <input class="inpNum" type="number" value="{$vo.num}" readonly>
                        <div class="add">+</div>
                    </div>
                </div>
            </div>
        </li>
        {/foreach}
    </ul>
    <div class="cart-footer bgc carBtm">
        <label>
            <input type="checkbox" class="checkbox_all">
            全选
        </label>
        <div>
            <p class="cart-sum bsclr_org">合计：￥<span class="amount">0.00</span></p>
            <div class="cart-submit"><a href="javascript:;" lay-filter="save" lay-submit>结 算</a></div>
        </div>
    </div>
</form>
{include file="public/nav" select="3" /}
</body>
{include file="public/footer" select="0" /}
<script src="/static/index/js/cart.js"></script>

